<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: qupen
  Date: 2016/9/19
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">

            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon1.png"/>
                    <span><spring:message code="label.admin.dashboard"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#dashboder" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/tenant/device/info#dashboder">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.dashboard"/>
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a data-hash="#idleReason"
                   href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/user/idle/reason#idleReason">
                    <img src="/images/idle.png">
                    <span class="sie-nav-parent">
                        <spring:message code="label.tenant.idleReason.deal"/>
                    </span>
                </a>
            </li>
            <c:if test="${sessionScope['siemens.multitenant.login.user'].getRoleId()==0||sessionScope['siemens.multitenant.login.user'].getRoleId()==1}">
                <li class="tree-view">
                    <a href="javascript:;">
                        <img src="/images/icon4.png"/>
                        <span><spring:message code="label.tenant.system.setting"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a data-hash="#deviceSetting" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/device/devices#deviceSetting">
                                <i class="fa fa-circle-o"></i>
                                <spring:message code="label.tenant.device.setting"/>
                            </a>
                        </li>
                        <li><a data-hash="#metadataSetting"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/metadata/list#metadataSetting"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.metadata.setting"/></a></li>
                        <li><a data-hash="#eventSetting"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/event/events#eventSetting"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.event.setting"/></a></li>
                        <li><a data-hash="#stateSetting"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/state/settingList#stateSetting"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.status.setting"/></a></li>
                        <li><a data-hash="#shiftSetting"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/shift/list#shiftSetting"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.setting.shift"/></a></li>
                        <li><a data-hash="#userManageer"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/user/list#userManageer"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.user.management"/></a></li>
                        <li><a data-hash="#service"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/service/list#service"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.service.current"/></a></li>
                    </ul>
                </li>
            </c:if>
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon7.png"/> <span><spring:message code="label.tenant.event.management"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a data-hash="#eventSub"
                           href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/event/list#eventSub"><i
                            class="fa fa-circle-o"></i><spring:message code="label.tenant.event.subscribe"/></a></li>
                    <li>
                        <a data-hash="#messages" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/message/list#messages"><i class="fa fa-circle-o"></i><spring:message code="label.message"/>
                        </a>
                    </li>
                </ul>
            </li>
            <c:if test="${sessionScope['siemens.multitenant.login.user'].getRoleId()==0||sessionScope['siemens.multitenant.login.user'].getRoleId()==1}">

                <li class="tree-view">
                    <a href="javascript:;">
                        <img src="/images/icon5.png"/>
                        <span><spring:message code="label.tenant.new.tenant.initWizard"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a data-hash="#resetPassword"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/user/setPassword#resetPassword"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.admin.resetPass"/> </a></li>
                        <li><a data-hash="#init" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/api/v1/metadata/init#init"><i class="fa fa-circle-o"></i><spring:message code="label.tenant.metaData.init"/></a></li>
                    </ul>
                </li>
                <%--<li>--%>
                    <%--<a data-hash="#deviceData"--%>
                       <%--href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/product/devices#deviceData">--%>
                        <%--<img src="/images/icon1.png">--%>
                    <%--<span class="sie-nav-parent">--%>
                        <%--机床数据录入--%>
                    <%--</span>--%>
                    <%--</a>--%>
                <%--</li>--%>
                <li class="tree-view">
                    <a href="javascript:;">
                        <img src="/images/device.png"/>
                        <span><spring:message code="label.tenant.device.related"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a data-hash="#deviceList"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/tenant/device/info#deviceList"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.device.list"/></a></li>
                        <li><a data-hash="#downtimeRecord"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/user/downtimeRecord#downtimeRecord"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.offLine.reason.list"/></a></li>
                        <li><a data-hash="#fault"
                               href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/faultReason/list#fault"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.fault.repair.record"/></a></li>
                        <li><a href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/user/list"><i
                                class="fa fa-circle-o"></i><spring:message code="label.tenant.statistical.charts"/><span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span></a>
                            <ul class="treeview-menu menu-open">
                                <li>
                                    <a data-hash="#deviceAllIdleChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/sameDeviceDiffReason#deviceAllIdleChart">
                                        <i class="fa fa-circle-o"></i>机床所有idle原因趋势</a>
                                </li>
                                <li>
                                    <a data-hash="#deviceIdleChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/sameDeviceSameReason#deviceIdleChart">
                                        <i class="fa fa-circle-o"></i>机床idle原因趋势</a>
                                </li>
                                <li>
                                    <a data-hash="#idleDevicesChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/sameIdleReasonDiffDevice#idleDevicesChart">
                                        <i class="fa fa-circle-o"></i>所有发生idle原因的机床趋势</a>
                                </li>
                                <li>
                                    <a data-hash="#deviceStateBarChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/deviceStateBarChart#deviceStateBarChart">
                                        <i class="fa fa-circle-o"></i>机床状态时间统计</a>
                                </li>
                                <li>
                                    <a data-hash="#deviceServiceChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/deviceServiceChart#deviceServiceChart">
                                        <i class="fa fa-circle-o"></i>OEE and So on</a>
                                </li>
                                <li>
                                    <a data-hash="#shiftDeviceServiceChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/shiftDeviceServiceChart#shiftDeviceServiceChart">
                                        <i class="fa fa-circle-o"></i>Shift OEE and So on</a>
                                </li>
                                <li>
                                    <a data-hash="#shiftIdleChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/shiftIdle#shiftIdleChart">
                                        <i class="fa fa-circle-o"></i>班次idle原因饼图</a>
                                </li>
                                <li>
                                    <a data-hash="#deviceStatePieChart" href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/chart/dayOrShiftStateChart#deviceStatePieChart">
                                        <i class="fa fa-circle-o"></i>机床状态饼图</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
            </c:if>
            <li>
                <a href="/partner/${sessionScope['siemens.multitenant.login.user'].getTenant()}/logout">
                    <img src="/images/quit_white.png" style="margin-left: 2px;">
                     <span><spring:message code="label.admin.sidebar.dashboard.profile.signOut"/></span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
